﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Indexers.Lucene.Models
{
	[DataContract]
	public class IndexationStatus
	{
		public IndexationStatus()
		{
			WorkerId = Guid.NewGuid().ToString();
			ProcessTerminated = false;
			CancelRequested = false;
		}
		[DataMember]
		public string WorkerId { get; set; }
		[DataMember]
		public string ErrorMessage { get; set; }
		[DataMember]
		public string ProgressMessage { get; set; }
		[DataMember]
		public int ProductCount { get; set; }
		[DataMember]
		public int DocumentCount { get; set; }
		[DataMember]
		public string IndexPath { get; set; }
		[DataMember]
		public int PageIndex { get; set; }
		[DataMember]
		public int PageSize { get; set; }
		[DataMember]
		public DateTime Start { get; set; }
		[DataMember]
		public bool ProcessTerminated { get; set; }
		[DataMember]
		public string WorkingFolder { get; set; }
		[DataMember]
		public bool CancelRequested { get; set; }
	}
}
